package com.hulk.ratel.persistence.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.hulk.ratel.persistence.entity.SuperEntity;
import java.time.LocalDate;
import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author hulk
 * @since 2018-12-13
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("t_payorg_info")
public class PayorgInfo extends SuperEntity {

    private static final long serialVersionUID = 1L;

    @TableField("org_code")
    private String orgCode;

    /**
     * 与out_partner_code相同
     */
    @TableField("out_org_code")
    private String outOrgCode;

    @TableField("org_name")
    private String orgName;

    /**
     * Y-末端机构
            N-非末端机构
            负责生成二位码的为末端机构
     */
    @TableField("over_flag")
    private String overFlag;

    /**
     * 01-1级
            02-2级
     */
    @TableField("org_grade")
    private String orgGrade;

    @TableField("org_intro")
    private String orgIntro;

    @TableField("group_code")
    private String groupCode;

    /**
     * HTTP
            HTTPS
            TCP
            CXF
            TUXEDO
     */
    @TableField("network_protocol")
    private String networkProtocol;

    @TableField("ip")
    private String ip;

    @TableField("port")
    private Integer port;

    @TableField("uri")
    private String uri;

    /**
     * XML
            JSON
     */
    @TableField("serialization_mode")
    private String serializationMode;

    /**
     * 00 未启用
            01 启用
            02 停用
            99 注销
     */
    @TableField("status")
    private String status;

    @TableField("start_date")
    private LocalDate startDate;

    @TableField("expiry_date")
    private LocalDate expiryDate;

    @TableField("contact_name")
    private String contactName;

    @TableField("contact_mobile")
    private String contactMobile;

    @TableField("contact_phone")
    private String contactPhone;

    @TableField("contact_fax")
    private String contactFax;

    @TableField("f_linkman_name")
    private String fLinkmanName;

    @TableField("f_linkman_phone")
    private String fLinkmanPhone;

    @TableField("f_linkman_fax")
    private String fLinkmanFax;

    @TableField("f_linkman_email")
    private String fLinkmanEmail;

    @TableField("contact_email")
    private String contactEmail;

    @TableField("remark")
    private String remark;

    @TableField("created_by")
    private String createdBy;


    @TableField("audited_time")
    private LocalDateTime auditedTime;

    /**
     * N-未审核
            Y-已审核
            U-已修改
     */
    @TableField("audited_flag")
    private String auditedFlag;

    @TableField("audited_by")
    private String auditedBy;

    @TableField("updated_by")
    private String updatedBy;



    @TableField("archived_time")
    private LocalDateTime archivedTime;

    /**
     * N-未归档
            Y-已归档
     */
    @TableField("archived_flag")
    private String archivedFlag;

    @TableField("ori_id")
    private String oriId;



    @TableField("rsv1")
    private String rsv1;

    @TableField("rsv2")
    private String rsv2;

    @TableField("rsv3")
    private String rsv3;


    public static final String ORG_CODE = "org_code";

    public static final String OUT_ORG_CODE = "out_org_code";

    public static final String ORG_NAME = "org_name";

    public static final String OVER_FLAG = "over_flag";

    public static final String ORG_GRADE = "org_grade";

    public static final String ORG_INTRO = "org_intro";

    public static final String GROUP_CODE = "group_code";

    public static final String NETWORK_PROTOCOL = "network_protocol";

    public static final String IP = "ip";

    public static final String PORT = "port";

    public static final String URI = "uri";

    public static final String SERIALIZATION_MODE = "serialization_mode";

    public static final String STATUS = "status";

    public static final String START_DATE = "start_date";

    public static final String EXPIRY_DATE = "expiry_date";

    public static final String CONTACT_NAME = "contact_name";

    public static final String CONTACT_MOBILE = "contact_mobile";

    public static final String CONTACT_PHONE = "contact_phone";

    public static final String CONTACT_FAX = "contact_fax";

    public static final String F_LINKMAN_NAME = "f_linkman_name";

    public static final String F_LINKMAN_PHONE = "f_linkman_phone";

    public static final String F_LINKMAN_FAX = "f_linkman_fax";

    public static final String F_LINKMAN_EMAIL = "f_linkman_email";

    public static final String CONTACT_EMAIL = "contact_email";

    public static final String REMARK = "remark";

    public static final String CREATED_BY = "created_by";


    public static final String AUDITED_TIME = "audited_time";

    public static final String AUDITED_FLAG = "audited_flag";

    public static final String AUDITED_BY = "audited_by";

    public static final String UPDATED_BY = "updated_by";



    public static final String ARCHIVED_TIME = "archived_time";

    public static final String ARCHIVED_FLAG = "archived_flag";

    public static final String ORI_ID = "ori_id";

    public static final String TENANT_ID = "tenant_id";



    public static final String RSV1 = "rsv1";

    public static final String RSV2 = "rsv2";

    public static final String RSV3 = "rsv3";

}
